import {POST,GET} from "./request.js"

/**
 训练计划列表
 */
export const getTaskIndex = (data)=>{
	return GET('/task/index',data);
}
/**
 训练计划下的课程
 */
export const getTaskList = (data)=>{
	return GET('/task/list',data);
}
/**
 训练计划详情
 */
export const getTaskDetail = (data)=>{
	return GET('/task/detail',data);
}
/**
 获取学校体能下的学生
 */
export const getStudentStudent = (data)=>{
	return GET('/school/student',data);
}
/**
 获取本校优秀作业
 */
export const getSchoolIndex = (data)=>{
	return GET('/school/index',data);
}
/**
 获取本校详情
 */
export const getSchoolDetail = (data)=>{
	return GET('/school/detail',data);
}
/**
 获取本校轮播
 */
export const getSchoolBanner = (data)=>{
	return GET('/school/banner',data);
}

/**
 获取学生列表
 */
export const getStudentList = (data)=>{
	return GET('/student/index',data);
}


/**
 获取咨询列表
 */
export const getnews = (data)=>{
	return GET('/news/list',data);
}

/**
 获取咨询列表
 */
export const upload = (data)=>{
	return POST('/task/upload',data);
}

/**
 学校资讯列表:
ctivity/index?type=1&school_id=1
 type:   1.校园动态 2.校园活动 3.教育讲坛 4.示范教学
 */
export const getActivity = (data)=>{
	return GET('/activity/index',data);
}

/**
 学校资讯详细:
activity/get?activity_id=4
 */
export const getActivityDetail = (data)=>{
	return GET('/activity/get',data);
}